projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6f17b9
)
repo: Fix double close() in summary generation
author
Colin Walters
<walters@verbum.org>
Thu, 11 May 2017 02:21:27 +0000
(22:21 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Thu, 11 May 2017 15:26:49 +0000
(15:26 +0000)
Happened to notice this while doing a style port.
Closes: #849
Approved by: jlebon
src/libostree/ostree-repo.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo.c
b/src/libostree/ostree-repo.c
index 76ae0d9ba93a656fd32c00d527a35663fa932996..1f02007f36aa238aee69c815bbd803fde23c0781 100644
(file)
--- a/
src/libostree/ostree-repo.c
+++ b/
src/libostree/ostree-repo.c
@@
-4582,6
+4582,7
@@
ostree_repo_regenerate_summary (OstreeRepo *self,
in_stream = g_unix_input_stream_new (superblock_file_fd, TRUE);
if (!in_stream)
goto out;
+ superblock_file_fd = -1; /* Transfer ownership */
if (!ot_gio_checksum_stream (in_stream,
&csum,